<?php if(!empty($dataModuleActivity)):?>
<div id="module_activity">
	<!--<h2 class="tab tabBlue">กิจกรรมชิงรางวัล</h2>-->
	<h2 class="moduleHeader headerActivity">กิจกรรมชิงรางวัล</h2>
	<a class="readmore" target="_blank" href="<?php echo $activity_url;?>">ดูทั้งหมด&nbsp;&raquo;</a>
	<div id="module_activity_scrollbar">
		<ul>
			<?php foreach($dataModuleActivity as $value):?>
			<li>
				<a href="<?php echo $activity_url.'archives/'.$value->activity_id.'-'.seo_url($value->activity_subject);?>" target="_blank">
					<div class="image">
						<?php echo exec_image(array(
							'folder' => 'activity',
							'dimension' => '270x115',
							'file_name' => @$value->image->activity_file_name.'.'.@$value->image->activity_file_ext,
							'alt' => ''.$value->activity_subject.'',	
							'title' => ''.$value->activity_subject.''	
							)
						);?>				
					</div>
					<p><?php echo $value->activity_subject;?></p>
				</a>
			</li>
			<?php endforeach;?>
		</ul>
	</div>
</div>
<script>
    $(function() {
        $('#module_activity_scrollbar').perfectScrollbar();
    });
</script>
<?php endif;?>